﻿using Basic.FormRemoteModel.Form;
using Basic.FormService.Interface;
using WeDonekRpc.Client.Interface;

namespace Basic.FormService.RpcEvent
{
    internal class FormEnableEvent : IRpcApiService
    {
        private readonly IFormEnableService _Service;

        public FormEnableEvent ( IFormEnableService service )
        {
            this._Service = service;
        }

        public bool EnableForm ( EnableForm obj )
        {
            return this._Service.Enable(obj.Id);
        }
    }
}
